<div id="sprytextfield1">
<?php echo __('label').$form->input('Profil.label', array('label' => false)); ?>
</div>
<div id="sprytextfield2">
<?php echo __('daily_rate').$form->input('Profil.default_value', array('label' => false)); ?>
</div>
<?php echo $ajax->submit(__('add_profil', true), array('url' => 'add', 'update'=>'profils')); ?>
<?php echo $ajax->link(__('cancel', true), '/profils/done',array('update'=>'profil')); ?>


<script type="text/javascript">
	var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
	var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer", {validateOn:["blur", "change"], allowNegative:false});
</script> 